scoreboard objectives add ton dummy
scoreboard players add @s[tag=ton] ton 1

execute as @s[scores={ton=100..}] at @s run function ton

tag @s[scores={ton=100..}] remove ton

scoreboard players set @s[scores={ton=100..}] ton 0